<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button>1</button>
    <button>2</button>
    <button>3</button>
    <script>
        let btnArr=document.querySelectorAll('button');
        console.log(btnArr);
        // 将伪数组变成真数组
        // Array.from 作用：将伪数组变为真数组
        let arr=Array.from(btnArr);
        console.log(arr);
        console.dir(Array);

        // Array.of 将一些列值，转变为数组
        let arr1=Array.of('2','2','bcsh','1',1);
        console.log(arr1);

        // push 添加
        let test=[1,2,3,4];
        test.push('nihao');
        console.log(test);
        // 需求 查找test中大于5的值
        let result=test.find((item,index)=>{return item > 5});
        console.log(result);   //undefined
        // 数组的高阶方法有那些：every filter find findIndex foreach map reduce sort
    </script>
</body>
</html>